﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace passwordcontainer
{
    public partial class passwordcontainer : Form
    {
        public passwordcontainer()
        {
            InitializeComponent();
        }

        private void passwordcontainer_Load(object sender, EventArgs e)
        {

        }

        private void openPassFile_Click(object sender, EventArgs e)
        {
            // Set the file dialog to filter for graphics files.
            this.openPasswordFileDialog.Filter =
                "Files (*.pwd;*.txt;)|*.pwd;*.txt;|" +
                "All files (*.*)|*.*";

            // Allow the user to select multiple images.
            this.openPasswordFileDialog.Multiselect = false;
            this.openPasswordFileDialog.Title = "Open Password File";
            openPasswordFileDialog.ShowDialog();

        }

        private void closePassFile_Click(object sender, EventArgs e)
        {
            // Set the file dialog to filter for graphics files.
            this.savePasswordFileDialog.Filter =
                "Files (*.pwd;)|*.pwd;|" +
                "All files (*.*)|*.*";

            // Allow the user to select multiple images.
            this.savePasswordFileDialog.Title = "Close Password File";
            savePasswordFileDialog.ShowDialog();
        }

        private void setMasPwd_Click(object sender, EventArgs e)
        {

        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void openPasswordFileDialog_FileOk(object sender, CancelEventArgs e)
        {
            //passwords.password myTest = new passwords.password();
        }

    }
}
